import { IsNotEmpty } from 'class-validator';

export class LoginParamsDto {
  @IsNotEmpty({ message: '用户必填!' })
  account: string;

  @IsNotEmpty({ message: '密码必填!' })
  password: string;
  // @IsString({ message: '参数password要求是字符串!' })

  from: string;
  // @IsString({ message: '参数password要求是字符串!' })
}
